{* Template Name:文章页单页 *}
<!doctype html>
<html>
<head>
{template:header}
</head>
<body>
  <header>
  {template:navbar}
  </header>
  <div class="container">
    <div class="location">
      当前位置：
        {if $type == 'index'}
          <i class="fa fa-bullhorn"></i>网站改版调试中!
        {elseif $type == 'category'}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          {php}
            $html='';
            function navcate($id){
              global $html;
              $cate = new Category;
              $cate->LoadInfoByID($id);
              $html ='&raquo;  <a href="' .$cate->Url.'" title="查看' .$cate->Name. '中的全部文章">' .$cate->Name. '</a> '.$html;
              if(($cate->ParentID)>0){navcate($cate->ParentID);}
            }
            navcate($category->ID);
            global $html;
            echo $html;
          {/php}
        {elseif $type =="article"}	
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>	
          {php}
            $html='';
            function navcate($id){
              global $html;
              $cate = new Category;
              $cate->LoadInfoByID($id);
              $html ='&raquo;  <a href="' .$cate->Url.'" title="查看' .$cate->Name. '中的全部文章">' .$cate->Name. '</a> '.$html;
              if(($cate->ParentID)>0){navcate($cate->ParentID);}
            }
            navcate($article->Category->ID);
            global $html;
            echo $html;
          {/php} &raquo; {$article.Title}
        {elseif $type =="page"}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          &raquo; {$article.Title}
        {elseif $type =="tag"}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          &raquo;
          <span class="current">标签存档：{$tag.Name}</span>
        {elseif $type =="author"}
            <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
            &raquo;
          <span class="current">{$author.Name} 的文章</span>
        {/if}
    </div>
    <div class="bottom">
      <div class="commentsArticle">
        <div class="articleDetails">
            {if $article.Type==ZC_POST_TYPE_ARTICLE}
            {template:post-single}
            {else}
            {template:post-page}
            {/if}
        </div>
        <div class="commentsDetails">
          {if !$article.IsLock}
            {template:comments}
          {/if}
        </div>
      </div>
      <div class="sidebar">
        {if $type=='index'}
        {template:sidebar}
        {elseif $type=='category'}
        {template:sidebar2}
        {else}
        {template:sidebar6}
        {/if}
      </div>
    </div>
    <div class="footer">
      <p>{$copyright}</p>
      <p>Powered By {$zblogphphtml}</p>
    </div>
  </div>
  <a href="#" title="返回顶部" class="icon-top"></a>
</body>
</html>